#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <string.h>
#include "ClassIntergerAddition.h"
#include "DigitInputCheck.h"
using namespace std;
string p;

void pass()
    {
      cout << "Please Enter Any Alpha-Numeric Key then Enter to Continue" << endl;
            cin >> p;
            cout << string(50, '\n');            
        }

int main()
{
    int w=1;
    while(w!=0)
    {
        cout<<"Welcome to a simple addition class program!!"<< endl;
        float e,f;
        
        cout << "Enter the First Value" << endl;
        cin >> p;
        if(IsNumeric(p) == true)
        {
            e = strtof(p.c_str(),NULL);
            
        }
        else
        {
            pass();
            main();
        }
        MyInterger variable(e);
        cout << "Enter the Second Value" << endl;
        cin >> p;
        if(IsNumeric(p) == true)
        {
            f = strtof(p.c_str(),NULL);
            
        }
        else
        {
            pass();
            main();
        }
        MyInterger variable2(f);
        cout << "Added Value is "<< variable.addition(variable2) << endl; 
        
        
    }
    return 0;
}
